package com.cxh.mchat.bussiness.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cxh.mchat.bussiness.bean.MessageCountBean;
import com.cxh.mchat.bussiness.entity.Message;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cxh
 * @since 2021-12-30
 */
public interface IMessageService extends IService<Message> {
    /**
     * 保存聊天记录
     * @param message 信息
     * @return 结果
     */
    boolean add(Message message);

    /**
     * 消息查询
     * @return
     */
    MessageCountBean queryNoReadCount(String userNo, String bussinessNo);
}
